package com.snowwolf.trade.service.impl;

import com.snowwolf.trade.base.RestResponse;
import com.snowwolf.trade.dao.TradeDao;
import com.snowwolf.trade.entity.TradeEo;
import com.snowwolf.trade.service.ITradeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: topsnowwolf
 * @description:
 * @date: Create in 2019/2/24 22:38
 * @modified by:
 * @versions：0.1.0
 */
@Service
public class TradeServiceImpl implements ITradeService{
    @Autowired
    private TradeDao tradeDao;
    @Override
    public RestResponse<TradeEo> findById(Long id) {
        return new RestResponse<>(tradeDao.findById(id).get());
    }
}
